Kanzi 4.0.0-beta2
kanzi::gfx::BufferCreateInfo Struct Reference

Creation information for a buffer. More...

#include <kanzi/gfx/create_info.hpp>

Inheritance diagram for kanzi::gfx::BufferCreateInfo:
[legend]

Public Types

using HandleType
 

Public Attributes

AccessFlag cpuAccessFlag
 Required CPU access for the buffer.
 
span< const byte > initialData
 Initial data for the buffer.
 
uint32_t size
 Size of the buffer in bytes.
 
BufferUsageFlag usageFlag
 Expected usage of the buffer.
 
- Public Attributes inherited from kanzi::gfx::BaseCreateInfo
string_view name
 The name of the graphics object, useful for debugging.
 

Detailed Description

Creation information for a buffer.

A buffer is a general-use block of memory that you can use for uniforms, staging data, or other arbitrary uses.

Since
Kanzi 4.0.0

Member Typedef Documentation

◆ HandleType

Member Data Documentation

◆ size

uint32_t kanzi::gfx::BufferCreateInfo::size

Size of the buffer in bytes.

◆ usageFlag

BufferUsageFlag kanzi::gfx::BufferCreateInfo::usageFlag

Expected usage of the buffer.

◆ cpuAccessFlag

AccessFlag kanzi::gfx::BufferCreateInfo::cpuAccessFlag

Required CPU access for the buffer.

◆ initialData

span<const byte> kanzi::gfx::BufferCreateInfo::initialData

Initial data for the buffer.

The local copy of this data is only required during the create function.


The documentation for this struct was generated from the following file: